﻿@model Irandeb4.Models.LogOnModel

@{
    ViewBag.Title = "Log On";
}

<h2>Log On</h2>
<p>
    Introduzca su nombre de usuario y su contraseña
</p>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@Html.ValidationSummary(true, "Login sin exito. Porfavor corrija sus errores y vuelva a intentar.")

@using (Html.BeginForm()) {
    <div>
        <fieldset>
            <legend>Informacion de la cuenta</legend>
            <br/>
            <table>
                <tr>
                    <td>
                        @Html.LabelFor(m => m.UserName,"Usuario")
                    </td>
                    <td>
                        @Html.TextBoxFor(m => m.UserName)
                        @Html.ValidationMessageFor(m => m.UserName)
                    </td>
                </tr>
                <tr>
                    <td>
                        @Html.LabelFor(m => m.Password, "Password")
                    </td>
                    <td>
                        @Html.PasswordFor(m => m.Password)
                        @Html.ValidationMessageFor(m => m.Password)
                    </td>
                </tr>
                <tr>
                    <td>
                        @Html.CheckBoxFor(m => m.RememberMe)
                        @Html.LabelFor(m => m.RememberMe,"Recordarme")
                    </td>
                </tr>
                <tr>
                    <td colspan="2" align="right">
                        <input type="submit" value="Iniciar Sesion" />
                    </td>
                </tr>
            </table>

        </fieldset>
    </div>
}
